<template>
  <div id="app">
    <router-view/>
  </div>
</template>


<script>
  export default {
    name:"App",

    watch:{

      $route(to,from){
        if(to.path != '/login'){
          debugger
          let obj = {
            name:to.name,
            title:to.meta.title
          }
          this.$store.commit("addTab",obj)
        }
      }
    }
  }
</script>
<style>
  html,body,#app{
    height: 100%;
    padding: 0;
    margin: 0;
  }
  a {
    text-decoration: none;
  }
</style>
